package classreflex;

import annotation_.MyAnnotation;

/**
 * @author 15594
 */
@MyAnnotation
public class Person{
    @MyAnnotation("hi")
    private int id;
    private String name;
    private int age ;
    @MyAnnotation("嘤嘤嘤")
    public String show;

    public static String firstName;


    public static String getFirstName() {

        return firstName;
    }

    public static void setFirstName(String firstName) {
        Person.firstName = firstName;
    }

    public Person() {
        System.out.println("空参构造器");
    }

    public Person(int id, String name, int age) {
        System.out.println("有参构造器");
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getShow() {
        return show;
    }

    public void setShow(String show) {
        this.show = show;
    }

    public String show(int a, String b ){
        System.out.println(a+b);

        return "返回值";
    }

    @Override
    public String toString() {

        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", show='" + show + '\'' +
                '}';
    }
}